# encoding = utf-8
#!/usr/sbin
import json
# fp = open("../exceldoc/proute.json",encoding="utf-8")
# data = json.load(fp)    #将json 文件转成dict输出
# print(data['proutepostdata'])

class MatchJsonData():
    def __init__(self):
        #读取配置数据
        self.data = self.read_data()
    def read_data(self):
        with open("./exceldoc/proute.json",encoding="utf-8") as fp:
            data = json.load(fp)
            return data
    # 根据key 值获得对应的json 数据
    def get_data(self,key):
        return self.data[key]

